package org.tc.client.service;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.tc.client.entity.Comments;

import java.util.List;

@RequestMapping("/CommentsService")
public interface CommentsService {

    @RequestMapping("/deleteCommentsById")
    int deleteCommentsById(Integer id);

    @RequestMapping("/insertComments")
    int insertComments(Comments comments);

    @RequestMapping("/selectCommentsByComId")
    List<Comments> selectCommentsByComId(@RequestParam("commodityid") Integer commodityid);

    @RequestMapping("/selectCommentsByGood")
    List<Comments> selectCommentsByGood(@RequestParam("commodityid") Integer commodityid);

    @RequestMapping("/selectCommentsByMiddle")
    List<Comments> selectCommentsByMiddle(@RequestParam("commodityid") Integer commodityid);

    @RequestMapping("/selectCommentsByBad")
    List<Comments> selectCommentsByBad(@RequestParam("commodityid") Integer commodityid);


    @RequestMapping("/updateByPrimaryKey")
    int updateByPrimaryKey(Comments record);
}